<template>
    <div>
       商品状态
       <button @click="getQuery">获取路由</button>
       {{$route.params.setid}}
       {{$route.query.setid}}
    </div>
</template>

<script>
export default {
    name:'commodityState',
    data(){
        return{
            
        }
    },
    methods:{
        getQuery(){
            console.log(this.$route.query.setid);
            console.log(this.$route.params.setid);
        }
    },
}
</script>
<style lang="less" scoped>

</style>